package com.kingcore.commerce.core.sys.business;



/**
 * <strong>BusinessFactory</strong><br>
 * <br> 
 * <strong>Create on : 2011-12-31<br></strong>
 * <p>
 * <strong>Copyright (C) KingCore Software Co.,Ltd.<br></strong>
 * <p>
 * @author wuzeven@163.com<br>
 * @version <strong>e-Commerce v1.0.0</strong><br>
 */
public class BusinessFactory {
	
	private static BusinessFactory bf;
	
	private BusinessFactory() {
		 
	}
	
	public static BusinessFactory getInstance() {
		if (bf == null) {
			synchronized (BusinessFactory.class) {
				bf = new BusinessFactory();
			}
		}
		return bf;
	}
	
//	@SuppressWarnings("unchecked")
//	public <T extends CommerceService> T getService(String serviceName) {
//		Assert.hasText(serviceName);
//		return (T)SpringContextHolder.getBean(serviceName);
//	}
	
}
